import com.ruoyi.RuoYiApplication;
import com.ruoyi.spot.openapi.currencyPair.controller.SpotcurrencyPair;
import com.ruoyi.spot.realtime.historykline.controller.SpotHistoryklineRealtimeDataController;
import com.ruoyi.spot.realtime.kline.controller.SpotKlineRealtimeDataController;
import com.ruoyi.spot.realtime.lastesttrade.controller.SpotLastesttradeRealtimeDataController;
import com.ruoyi.spot.realtime.orderbook.controller.SpotOrderbookRealtimeDataController;
import com.ruoyi.spot.realtime.ticker.controller.SpotTickerRealtimeDataController;
import com.ruoyi.spot.realtime.transactionrecord.controller.SpotTransactionRecordRealtimeDataController;
import com.ruoyi.swap.openapi.currencyPair.controller.SwapcurrencyPair;
import com.ruoyi.swap.realtime.historykline.controller.SwapHistoryklineRealtimeDataController;
import com.ruoyi.swap.realtime.kline.controller.SwapKlineRealtimeDataController;
import com.ruoyi.swap.realtime.lastesttrade.controller.SwapLastesttradeRealtimeDataController;
import com.ruoyi.swap.realtime.orderbook.controller.SwapOrderbookRealtimeDataController;
import com.ruoyi.swap.realtime.ticker.controller.SwapTickerRealtimeDataController;
import com.ruoyi.swap.realtime.transactionrecord.controller.SwapTransactionRecordRealtimeDataController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;

/**
 * @program: ChainUp_Monitor_Rear
 * @description:
 * @author: Saumell
 * @create: 2024-07-31 16:15
 **/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = RuoYiApplication.class)
public class test0731 {

    @Qualifier("SpotCurrencyPair")
    @Autowired
    private SpotcurrencyPair spotcurrency;

    @Qualifier("SwapCurrencyPair")
    @Autowired
    private SwapcurrencyPair swapcurrency;

    @Test
    public void testsec() throws IOException, InterruptedException {
//        spotcurrency.compareSpotCurrenyPairs();
        swapcurrency.compareSwapCurrenyPairs();

    }



    @Autowired
    private SpotKlineRealtimeDataController spotKlineRealtimeDataController;

    @Autowired
    private SwapKlineRealtimeDataController swapKlineRealtimeDataController;

    @Autowired
    private SpotOrderbookRealtimeDataController spotOrderbookRealtimeDataVO;


    @Autowired
    private SwapOrderbookRealtimeDataController swapOrderbookRealtimeDataController;

    @Autowired
    private SpotTickerRealtimeDataController spotTickerRealtimeDataController;

    @Autowired
    private SwapTickerRealtimeDataController swapTickerRealtimeDataController;

    @Autowired
    private SpotLastesttradeRealtimeDataController spotLastesttradeRealtimeDataController;

    @Autowired
    private SwapLastesttradeRealtimeDataController swapLastesttradeRealtimeDataController;

    @Autowired
    private SpotHistoryklineRealtimeDataController spotHistoryklineRealtimeDataController;

    @Autowired
    private SwapHistoryklineRealtimeDataController swapHistoryklineRealtimeDataController;

    @Autowired
    private SpotTransactionRecordRealtimeDataController spotTransactionRecordRealtimeDataController;

    @Autowired
    private SwapTransactionRecordRealtimeDataController swapTransactionRecordRealtimeDataController;

    @Test
    public void testfourth(){
//        spotKlineRealtimeDataController.spotKlineMonitor();
        swapKlineRealtimeDataController.swapKlineMonitor();
//        spotOrderbookRealtimeDataVO.spotOrderBookMonitor();
        swapOrderbookRealtimeDataController.swapOrderBookMonitor();
//        spotTickerRealtimeDataController.spotTickereMonitor();
        swapTickerRealtimeDataController.swapTickereMonitor();
//        spotLastesttradeRealtimeDataController.spotLastestTradeeMonitor();
        swapLastesttradeRealtimeDataController.swapLastestTradeeMonitor();
//        spotHistoryklineRealtimeDataController.spotHistoryKlineMonitor();
        swapHistoryklineRealtimeDataController.swapHistoryKlineMonitor();
//        spotTransactionRecordRealtimeDataController.spotTransactionRecordMonitor();
        swapTransactionRecordRealtimeDataController.swapTransactionRecordMonitor();
    }
}
